package com.tony.blog.model.request;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 *
 * @Title: ReplyRequest
 * @Auther: 皮蛋布丁
 * @Date: 2021/09/10/11:04
 * @Description: 回复
 */
@Data
public class ReplyRequest implements Serializable {

    @NotNull(message = "微博id不能为空！")
    private Integer blogId;

    @NotNull(message = "评论id不能为空！")
    private Integer commentId;

    @NotBlank(message = "回复内容不能为空！")
    private String content;

    /*
    被回复者的昵称
     */
    private String replyTo;

    /*
    被回复者的用户id
     */
    private Integer replyUId;
}
